﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CouplingBeamProject
{
    /// <summary>
    /// 节点信息
    /// </summary>
    class Node
    {
        /// <summary>
        /// 编号
        /// </summary>
        public int Index { set; get; }

        /// <summary>
        /// X坐标
        /// </summary>
        public double X { set; get; }

        /// <summary>
        /// Y坐标
        /// </summary>
        public double Y { set; get; }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="x"></param>
        /// <param name="y"></param>
        public Node(double x, double y)
        {
            this.X = x;
            this.Y = y;
        }

        /// <summary>
        /// 继承
        /// </summary>
        /// <param name="index"></param>
        /// <param name="x"></param>
        /// <param name="y"></param>
        public Node(int index, double x, double y) : this(x, y)
        {
            this.Index = index;
        }
    }
}
